Ruby Gem command and rubygem command
I. Introduction
Gem is a standard package for managing Ruby libraries and programs. It is very convenient to find, install, upgrade, and uninstall software packages through Ruby Gem (such as http://rubygems.org/)
Transferred from: http://www.jianshu.com/p/728184da1699Gem Introduction:Gem is a standard package for managing Ruby libraries and programs, and it is easy to find, install, upgrade, and uninstall packages through Ruby Gems such as
Ruby-v # view the ruby VERSION ruby-e '''require "watir"; puts Watir: IE: version'' # view the watir VERSION
Rvm list known # list known ruby versions
Rvm install 1.9.3
Rvm use 1.9.3 | rvm use system
Rvm use 1.9.3 -- default
Rvm list # list local
Gem Common commands
Gem-v # View version of RubyGems software
gem help #显示RubyGem使用帮助
Gems help Example #列出RubyGem命令一些使用范例
gem install [gemname] # ann Install the specified gem package, the program will first find the GEM package from this
Ruby
You don't need to talk about this.
RVM
It is used to help you install the Ruby environment, help you manage multiple Ruby environments, and help you manage the Ruby environment on which the Ruby application you develop uses the machine. The
Ruby
You don't need to talk about this.Rvm
It is used to help you install the ruby environment, help you manage multiple Ruby environments, and help you manage the ruby environment on which the ruby application you develop uses the machine. The ruby
GEM-related commands use
1. Show help and version of Gem
Copy Code code as follows:
Gem–h/--help
#显示gem的帮助
Gem–v/--version#显示gem的版本号
2. List all available software for the remote library
Copy Code code as follows:
The customer's server is Ubuntu + apache2 + ruby on rails. Currently, some pages on the customer's server always report the 500 error. The ruby language is only known and has not been studied in depth. I have never set up a ruby server environment,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.